﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class ScenesManager : MonoSingleton<ScenesManager>
{
    AsyncOperation asyncOperation;
    int gameStatus = 0;

    public enum Scene
    {
        GameRoom = 0,
        GameApp,
        Loading
    }

    public void JumpToScene(Scene scene)
    {
        asyncOperation = SceneManager.LoadSceneAsync((int)scene);
    }

    public float GetProcess()
    {
        return asyncOperation.progress;
    }

    public void SetGameStatus()
    {
        gameStatus = 1;
    }

    public int GetGameStatus()
    {
        return gameStatus;
    }
}
